/*
 * Copyright 1999-2018 Alibaba Group Holding Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.ouwen.smartpay.service.chain.context;

import com.fm.core.common.facade.MerchOrderBase;
import com.fm.core.common.facade.MerchResultBase;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

import java.util.Map;

/***
 *@author <a href="http://youngitman.tech">青年IT男</a>
 *@version v1.0.0
 *@className Context
 *@description 上下文
 *@JunitTest: {@link  }
 *@date 13:35 2020-04-23
 *
**/
@Getter
@Setter
@Builder
public class Context {

    /*** 调用服务名称 */
    private String service;

    /*** 商户id */
    private String partnerId;

    /*** 子商户id */
    private String subPartnerId;

    /*** 请求序列号，每次请求必须不同 */
    private String requestNo;

    /*** datas转换为服务提供方order */
    private MerchOrderBase order;

    /*** 原始数据 */
    private Map<String,Object> datas;

    /*** 返回业务执行结果 */
    private MerchResultBase result;

    /*** gid */
    private String gid;

    /*** 幂等性校验阻断 */
    private boolean idempotentBreak;

}
